package rpd.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbCandidateRecruitmentInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbCandidateRecruitmentInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCriIdIsNull() {
            addCriterion("cri_id is null");
            return (Criteria) this;
        }

        public Criteria andCriIdIsNotNull() {
            addCriterion("cri_id is not null");
            return (Criteria) this;
        }

        public Criteria andCriIdEqualTo(String value) {
            addCriterion("cri_id =", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdNotEqualTo(String value) {
            addCriterion("cri_id <>", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdGreaterThan(String value) {
            addCriterion("cri_id >", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdGreaterThanOrEqualTo(String value) {
            addCriterion("cri_id >=", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdLessThan(String value) {
            addCriterion("cri_id <", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdLessThanOrEqualTo(String value) {
            addCriterion("cri_id <=", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdLike(String value) {
            addCriterion("cri_id like", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdNotLike(String value) {
            addCriterion("cri_id not like", value, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdIn(List<String> values) {
            addCriterion("cri_id in", values, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdNotIn(List<String> values) {
            addCriterion("cri_id not in", values, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdBetween(String value1, String value2) {
            addCriterion("cri_id between", value1, value2, "criId");
            return (Criteria) this;
        }

        public Criteria andCriIdNotBetween(String value1, String value2) {
            addCriterion("cri_id not between", value1, value2, "criId");
            return (Criteria) this;
        }

        public Criteria andResumeIdIsNull() {
            addCriterion("resume_id is null");
            return (Criteria) this;
        }

        public Criteria andResumeIdIsNotNull() {
            addCriterion("resume_id is not null");
            return (Criteria) this;
        }

        public Criteria andResumeIdEqualTo(String value) {
            addCriterion("resume_id =", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdNotEqualTo(String value) {
            addCriterion("resume_id <>", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdGreaterThan(String value) {
            addCriterion("resume_id >", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdGreaterThanOrEqualTo(String value) {
            addCriterion("resume_id >=", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdLessThan(String value) {
            addCriterion("resume_id <", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdLessThanOrEqualTo(String value) {
            addCriterion("resume_id <=", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdLike(String value) {
            addCriterion("resume_id like", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdNotLike(String value) {
            addCriterion("resume_id not like", value, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdIn(List<String> values) {
            addCriterion("resume_id in", values, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdNotIn(List<String> values) {
            addCriterion("resume_id not in", values, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdBetween(String value1, String value2) {
            addCriterion("resume_id between", value1, value2, "resumeId");
            return (Criteria) this;
        }

        public Criteria andResumeIdNotBetween(String value1, String value2) {
            addCriterion("resume_id not between", value1, value2, "resumeId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdIsNull() {
            addCriterion("requirement_id is null");
            return (Criteria) this;
        }

        public Criteria andRequirementIdIsNotNull() {
            addCriterion("requirement_id is not null");
            return (Criteria) this;
        }

        public Criteria andRequirementIdEqualTo(String value) {
            addCriterion("requirement_id =", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdNotEqualTo(String value) {
            addCriterion("requirement_id <>", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdGreaterThan(String value) {
            addCriterion("requirement_id >", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdGreaterThanOrEqualTo(String value) {
            addCriterion("requirement_id >=", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdLessThan(String value) {
            addCriterion("requirement_id <", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdLessThanOrEqualTo(String value) {
            addCriterion("requirement_id <=", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdLike(String value) {
            addCriterion("requirement_id like", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdNotLike(String value) {
            addCriterion("requirement_id not like", value, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdIn(List<String> values) {
            addCriterion("requirement_id in", values, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdNotIn(List<String> values) {
            addCriterion("requirement_id not in", values, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdBetween(String value1, String value2) {
            addCriterion("requirement_id between", value1, value2, "requirementId");
            return (Criteria) this;
        }

        public Criteria andRequirementIdNotBetween(String value1, String value2) {
            addCriterion("requirement_id not between", value1, value2, "requirementId");
            return (Criteria) this;
        }

        public Criteria andDemandTimeIsNull() {
            addCriterion("demand_time is null");
            return (Criteria) this;
        }

        public Criteria andDemandTimeIsNotNull() {
            addCriterion("demand_time is not null");
            return (Criteria) this;
        }

        public Criteria andDemandTimeEqualTo(Date value) {
            addCriterion("demand_time =", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeNotEqualTo(Date value) {
            addCriterion("demand_time <>", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeGreaterThan(Date value) {
            addCriterion("demand_time >", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("demand_time >=", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeLessThan(Date value) {
            addCriterion("demand_time <", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeLessThanOrEqualTo(Date value) {
            addCriterion("demand_time <=", value, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeIn(List<Date> values) {
            addCriterion("demand_time in", values, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeNotIn(List<Date> values) {
            addCriterion("demand_time not in", values, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeBetween(Date value1, Date value2) {
            addCriterion("demand_time between", value1, value2, "demandTime");
            return (Criteria) this;
        }

        public Criteria andDemandTimeNotBetween(Date value1, Date value2) {
            addCriterion("demand_time not between", value1, value2, "demandTime");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNull() {
            addCriterion("is_read is null");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNotNull() {
            addCriterion("is_read is not null");
            return (Criteria) this;
        }

        public Criteria andIsReadEqualTo(String value) {
            addCriterion("is_read =", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotEqualTo(String value) {
            addCriterion("is_read <>", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThan(String value) {
            addCriterion("is_read >", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThanOrEqualTo(String value) {
            addCriterion("is_read >=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThan(String value) {
            addCriterion("is_read <", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThanOrEqualTo(String value) {
            addCriterion("is_read <=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLike(String value) {
            addCriterion("is_read like", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotLike(String value) {
            addCriterion("is_read not like", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadIn(List<String> values) {
            addCriterion("is_read in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotIn(List<String> values) {
            addCriterion("is_read not in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadBetween(String value1, String value2) {
            addCriterion("is_read between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotBetween(String value1, String value2) {
            addCriterion("is_read not between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsPassIsNull() {
            addCriterion("is_pass is null");
            return (Criteria) this;
        }

        public Criteria andIsPassIsNotNull() {
            addCriterion("is_pass is not null");
            return (Criteria) this;
        }

        public Criteria andIsPassEqualTo(String value) {
            addCriterion("is_pass =", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassNotEqualTo(String value) {
            addCriterion("is_pass <>", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassGreaterThan(String value) {
            addCriterion("is_pass >", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassGreaterThanOrEqualTo(String value) {
            addCriterion("is_pass >=", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassLessThan(String value) {
            addCriterion("is_pass <", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassLessThanOrEqualTo(String value) {
            addCriterion("is_pass <=", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassLike(String value) {
            addCriterion("is_pass like", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassNotLike(String value) {
            addCriterion("is_pass not like", value, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassIn(List<String> values) {
            addCriterion("is_pass in", values, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassNotIn(List<String> values) {
            addCriterion("is_pass not in", values, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassBetween(String value1, String value2) {
            addCriterion("is_pass between", value1, value2, "isPass");
            return (Criteria) this;
        }

        public Criteria andIsPassNotBetween(String value1, String value2) {
            addCriterion("is_pass not between", value1, value2, "isPass");
            return (Criteria) this;
        }

        public Criteria andTbCommentIsNull() {
            addCriterion("tb_comment is null");
            return (Criteria) this;
        }

        public Criteria andTbCommentIsNotNull() {
            addCriterion("tb_comment is not null");
            return (Criteria) this;
        }

        public Criteria andTbCommentEqualTo(String value) {
            addCriterion("tb_comment =", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentNotEqualTo(String value) {
            addCriterion("tb_comment <>", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentGreaterThan(String value) {
            addCriterion("tb_comment >", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentGreaterThanOrEqualTo(String value) {
            addCriterion("tb_comment >=", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentLessThan(String value) {
            addCriterion("tb_comment <", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentLessThanOrEqualTo(String value) {
            addCriterion("tb_comment <=", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentLike(String value) {
            addCriterion("tb_comment like", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentNotLike(String value) {
            addCriterion("tb_comment not like", value, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentIn(List<String> values) {
            addCriterion("tb_comment in", values, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentNotIn(List<String> values) {
            addCriterion("tb_comment not in", values, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentBetween(String value1, String value2) {
            addCriterion("tb_comment between", value1, value2, "tbComment");
            return (Criteria) this;
        }

        public Criteria andTbCommentNotBetween(String value1, String value2) {
            addCriterion("tb_comment not between", value1, value2, "tbComment");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}